package com.foreverwin.jzymes.archive.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 数据归档表 Z_DATA_ARCHIVE
 * 
 * @author ervin
 * @date 2019-07-31
 */
public class DataArchive
{
	private static final long serialVersionUID = 1L;
	
	/** 表名 */
	private String tableName;
	/** 归档表名 */
	private String archiveTable;
	/** 引用表 */
	private String referTable;
	/** 主键 */
	private String primaryKey;
	/** 同步字段 */
	private String syncField;
	/** 查询条件 */
	private String queryCriteria;
	/** 同步后删除(Y/N) */
	private String deleteAfterSync;
	/** 同步分页大小 */
	private Long pageSize;
	/** 同步页数 */
	private Long pages;
	/** 累计计数 */
	private Long count;
	/** 排序子句 */
	private String orderClause;

	public void setTableName(String tableName) 
	{
		this.tableName = tableName;
	}

	public String getTableName() 
	{
		return tableName;
	}
	public void setArchiveTable(String archiveTable) 
	{
		this.archiveTable = archiveTable;
	}

	public String getArchiveTable() 
	{
		return archiveTable;
	}
	public void setReferTable(String referTable) 
	{
		this.referTable = referTable;
	}

	public String getReferTable() 
	{
		return referTable;
	}
	public void setPrimaryKey(String primaryKey) 
	{
		this.primaryKey = primaryKey;
	}

	public String getPrimaryKey() 
	{
		return primaryKey;
	}
	public void setSyncField(String syncField) 
	{
		this.syncField = syncField;
	}

	public String getSyncField() 
	{
		return syncField;
	}
	public void setQueryCriteria(String queryCriteria) 
	{
		this.queryCriteria = queryCriteria;
	}

	public String getQueryCriteria() 
	{
		return queryCriteria;
	}
	public void setDeleteAfterSync(String deleteAfterSync) 
	{
		this.deleteAfterSync = deleteAfterSync;
	}

	public String getDeleteAfterSync() 
	{
		return deleteAfterSync;
	}
	public void setPageSize(Long pageSize) 
	{
		this.pageSize = pageSize;
	}

	public Long getPageSize() 
	{
		return pageSize;
	}
	public void setPages(Long pages) 
	{
		this.pages = pages;
	}

	public Long getPages() 
	{
		return pages;
	}
	public void setCount(Long count) 
	{
		this.count = count;
	}

	public Long getCount() 
	{
		return count;
	}
	public void setOrderClause(String orderClause) 
	{
		this.orderClause = orderClause;
	}

	public String getOrderClause() 
	{
		return orderClause;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tableName", getTableName())
            .append("archiveTable", getArchiveTable())
            .append("referTable", getReferTable())
            .append("primaryKey", getPrimaryKey())
            .append("syncField", getSyncField())
            .append("queryCriteria", getQueryCriteria())
            .append("deleteAfterSync", getDeleteAfterSync())
            .append("pageSize", getPageSize())
            .append("pages", getPages())
            .append("count", getCount())
            .append("orderClause", getOrderClause())
            .toString();
    }
}
